<script setup lang="ts">
import {ref} from "vue";
import {UploadFilled} from "@element-plus/icons-vue";


const baseInformation = ref({
  name: '',
  name: '',
  desc: '',
  basePackage: '',
  version: '',
  author: '',
  tags: '',
  img: Object

})

</script>

<template>
  <el-input v-model="baseInformation.name" style="width: 240px" placeholder="请输入名称" />
  <el-input v-model="baseInformation.desc" style="width: 240px" placeholder="请输入描述" />
  <el-input v-model="baseInformation.basePackage" style="width: 240px" placeholder="请输入基础包" />
  <el-input v-model="baseInformation.version" style="width: 240px" placeholder="请输入版本" />
  <el-input v-model="baseInformation.author" style="width: 240px" placeholder="请输入作者" />
  <el-input v-model="baseInformation.tags" style="width: 240px" placeholder="请输入标签" />
  <el-upload
    class="upload-demo"
    drag
    action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
    multiple
  >
    <el-icon class="el-icon--upload"><upload-filled /></el-icon>
    <div class="el-upload__text">
      拖拽上传或者 <em>点击上传图片</em>
    </div>
    <template #tip>
      <div class="el-upload__tip">
        jpg/png 文件 且大小不得超过500kb
      </div>
    </template>
  </el-upload>
</template>

<style scoped lang="less">

</style>
